package cn.sumpu.app.wlcity.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.wlcity.domain.Seckill;
import cn.sumpu.app.wlcity.domain.SeckillPhone;
import cn.sumpu.app.wlcity.domain.SeckillTime;
import cn.sumpu.app.wlcity.exception.AppBusinessException;

public interface SeckillDao {
	void insert( Seckill  seckill) throws AppBusinessException;
	public List<Seckill> getSeckillList(Map<String, Object> map) throws AppBusinessException;
	public void insertSeckillTime(SeckillTime seckillTime) throws AppBusinessException;
	public int getSeckillListCount(Map<String, Object> map) throws AppBusinessException;
	public void deleteSeckill(String identifier) throws AppBusinessException;
	public void deleteSeckillTime(String seckillId) throws AppBusinessException;
	public Seckill selectSeckill(String seckillId) throws AppBusinessException;
	public void updateSeckill(Seckill seckill) throws AppBusinessException;
	public List<SeckillPhone> getSeckillPhoneList(Map<String, Object> map) throws AppBusinessException;
	public int getSeckillPhoneListCount(String seckillId) throws AppBusinessException;
	public void insertSeckillPhone(SeckillPhone seckillPhone) throws AppBusinessException;
	 public SeckillTime getSeckillTime(String seckillId) throws AppBusinessException;
	 public SeckillPhone selectSeckillPhoneOld(Map<String, Object> map) throws AppBusinessException;
	 public void updateSeckillTime(SeckillTime seckillTime) throws AppBusinessException;
	 public List<Seckill> getSeckillListFive(Map<String, Object> map) throws AppBusinessException;
	 public SeckillTime getTryLuckTime(String seckillId) throws AppBusinessException;
	public void updateCount()  throws AppBusinessException;
	 
}
